<?php
/* @var $this UserController */
/* @var $model User */

$this->breadcrumbs=array(
	'Users'=>array('index'),
	$model->id_user,
);

$this->menu=array(
	array('label'=>'Danh sách User', 'url'=>array('index')),
	array('label'=>'Tạo mới User', 'url'=>array('create')),
	array('label'=>'Cập nhật User', 'url'=>array('update', 'id'=>$model->id_user)),
	array('label'=>'Xóa User', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->id_user),'confirm'=>'Are you sure you want to delete this item?')),
	array('label'=>'Quản lý User', 'url'=>array('admin')),
);
?>

<h1>View User #<?php echo $model->id_user; ?></h1>

<?php $this->widget('zii.widgets.CDetailView', array(
	'data'=>$model,
	'attributes'=>array(
            array(
              'name'=>'avatar',
              'value'=>Yii::app()->request->baseUrl .'/images/avatar1/' . $model->avatar,
              'type' => 'image',
             'htmlOptions'=>array('width'=>'30px','height'=>'30px'),
            ),
            
		'id_user',
		'username',
		'password',
		'email',
		array(
                  'name'=>'trangthai',
                    'value'=>$model->trangthai == 1?"Hiện" : "Ẩn",
                ),
		'diachi',
		array(
                  'name'=>'gioitinh',
                    'value'=>$model->gioitinh == 1 ?"Nam" : "Nữ",
                ),
		//'avatar',
	),
)); ?>
